package com.tjzx.entity;

/**
 * EipNoticeInfoFilesId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoFilesId implements java.io.Serializable {

	// Fields

	private Long nifid;
	private String filename;
	private String mime;
	private String content;
	private String flag;
	private Long niid;
	private Integer filesize;

	// Constructors

	/** default constructor */
	public EipNoticeInfoFilesId() {
	}

	/** minimal constructor */
	public EipNoticeInfoFilesId(Long nifid, Long niid) {
		this.nifid = nifid;
		this.niid = niid;
	}

	/** full constructor */
	public EipNoticeInfoFilesId(Long nifid, String filename, String mime,
			String content, String flag, Long niid, Integer filesize) {
		this.nifid = nifid;
		this.filename = filename;
		this.mime = mime;
		this.content = content;
		this.flag = flag;
		this.niid = niid;
		this.filesize = filesize;
	}

	// Property accessors

	public Long getNifid() {
		return this.nifid;
	}

	public void setNifid(Long nifid) {
		this.nifid = nifid;
	}

	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getMime() {
		return this.mime;
	}

	public void setMime(String mime) {
		this.mime = mime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Long getNiid() {
		return this.niid;
	}

	public void setNiid(Long niid) {
		this.niid = niid;
	}

	public Integer getFilesize() {
		return this.filesize;
	}

	public void setFilesize(Integer filesize) {
		this.filesize = filesize;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoFilesId))
			return false;
		EipNoticeInfoFilesId castOther = (EipNoticeInfoFilesId) other;

		return ((this.getNifid() == castOther.getNifid()) || (this.getNifid() != null
				&& castOther.getNifid() != null && this.getNifid().equals(
				castOther.getNifid())))
				&& ((this.getFilename() == castOther.getFilename()) || (this
						.getFilename() != null
						&& castOther.getFilename() != null && this
						.getFilename().equals(castOther.getFilename())))
				&& ((this.getMime() == castOther.getMime()) || (this.getMime() != null
						&& castOther.getMime() != null && this.getMime()
						.equals(castOther.getMime())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getNiid() == castOther.getNiid()) || (this.getNiid() != null
						&& castOther.getNiid() != null && this.getNiid()
						.equals(castOther.getNiid())))
				&& ((this.getFilesize() == castOther.getFilesize()) || (this
						.getFilesize() != null
						&& castOther.getFilesize() != null && this
						.getFilesize().equals(castOther.getFilesize())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNifid() == null ? 0 : this.getNifid().hashCode());
		result = 37 * result
				+ (getFilename() == null ? 0 : this.getFilename().hashCode());
		result = 37 * result
				+ (getMime() == null ? 0 : this.getMime().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getNiid() == null ? 0 : this.getNiid().hashCode());
		result = 37 * result
				+ (getFilesize() == null ? 0 : this.getFilesize().hashCode());
		return result;
	}

}